Socket
Socket
Sign inDemoInstall

@ledgerhq/logs

Package Overview
Dependencies
0
Maintainers
15
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ledgerhq/logs

Ledger logs central point


Version published
Weekly downloads
117K
increased by3.74%
Maintainers
15
Install size
26.7 kB
Created
Weekly downloads
 

Readme

Source

@ledgerhq/logs

Utility library that is used by all Ledger libraries to dispatch logs so we can deal with them in a unified way.

API

Table of Contents
  • Log
  • log
  • listen

Log

A Log object

Properties
  • type string
  • message string?
  • data any?
  • id string
  • date Date

log

log something

Parameters
  • type string a namespaced identifier of the log (it is not a level like "debug", "error" but more like "apdu-in", "apdu-out", etc...)
  • message string? a clear message of the log associated to the type
  • data any?

listen

listen to logs.

Parameters
  • cb function (Log): void that is called for each future log() with the Log object

Returns Unsubscribe a function that can be called to unsubscribe the listener

Keywords

FAQs

Last updated on 26 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc